//
//  THAppEnvManager.m
//  BaseBusiness
//
//  Created by xiuxin on 2022/8/23.
//  Copyright © 2022 BaseBusiness. All rights reserved.
//

#import "THAppEnvManager.h"


@implementation THAppEnvManager

+ (THAppEnvManager *)shareManager
{
    static dispatch_once_t onceToken;
    static THAppEnvManager *_instanceManager = nil;
    dispatch_once(&onceToken, ^{
        _instanceManager = [[THAppEnvManager alloc]init];
        [_instanceManager commit];
    });
    return _instanceManager;
}
 
- (void)commit{

    NSDictionary *info = [[NSBundle mainBundle] infoDictionary];
    
    _verString = [info objectForKey:@"CFBundleShortVersionString"];
    _buildString = [info objectForKey:@"CFBundleVersion"];
    _themeColor = ColorFromHex(0XAD61FE);
     
}
 

@end
